Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

433
Visualizações
Is there with micronaut a way to have the "Spring Data JPA" repository autogenerated from an interface like in spring?

Im setting up a new micro service with micronaut and want it to access a database over jpa/hibernate.

Is there an easy way to have the "Spring Data JPA" repositories implementation to be autogenerated from the interface like with spring?

interface ExampleRepository {
    fun FindById(id: String): Example
}

Ideally i would the be able to import an ExampleRepository over DI into my service.

EDIT: Micronaut Data is in the process of being released: https://github.com/micronaut-projects/micronaut-data

over 4 years ago · Santiago Trujillo
2 Respostas
Responde à pergunta

0

Not currently, although such a feature is planned for the future.

over 4 years ago · Santiago Trujillo Relatório

0

In July 2019 Micronaut authors released Predator — short for Precomputed Data Repositories — that is equivalent to Spring Data.

Quoting:

Predator uses Micronaut's ahead-of-time (AoT) compilation APIs to move the entity meta-model into your compiler and translate a finder expression like findByTitle into the appropriate SQL or JPA-QL query at compilation time. A very thin runtime layer that uses Micronaut's reflection-free compilation-time AOP then only has to execute the query and return the results.

UPDATE: The project has now been renamed to "Micronaut Data", here is the new link to the docs

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda